<%@ Page Language="VB" MasterPageFile="~/master pages/AdminMasterPage.master" AutoEventWireup="false"
    EnableEventValidation="false" CodeFile="frmTabSupplier.aspx.vb" Inherits="Admin_frmTabSupplier"
    Title="Untitled Page" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="box" width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
        <tbody>
            <tr>
                <td class="boxheading" width="100%" height="14" align="center">
                    <h2 class="boxtitle">
                        Supplier Detail
                    </h2>
                </td>
            </tr>
        </tbody>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <style type="text/css">
        /*Modal Popup*/
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
    </style>
    <asp:ImageButton ImageUrl="~/images/add.gif" ID="ImageAdd" runat="server" CausesValidation="False" />
    <asp:ImageButton ImageUrl="~/images/edit.gif" ID="ImageEdit" runat="server" CausesValidation="False" />
    <asp:Panel runat="server" ID="panel2" Width="98%" HorizontalAlign="center">
        <div>
            <table align="center">
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table align="center" style="border: 1px; border-color: White; border-style: solid;">
                            <tr>
                                <td style="width: 1382px; height: 15px">
                                    &nbsp;</td>
                                <td style="width: 364px; height: 15px;">
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Supplier Id:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtSupplierId" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" TargetControlID="txtSupplierId"
                                        WatermarkText="Enter SupplierId Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="SupplierId-Cannot Be Blank."
                                        ControlToValidate="txtSupplierId">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ErrorMessage="SupplierId-Only Characters And Digits Are Allowed."
                                        ControlToValidate="txtSupplierId" ValidationExpression="[a-zA-Z0-9]+">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Supplier Name:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtSupplierName" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="txtSupplierName"
                                        WatermarkText="Enter SupplierName Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="FirstName-Cannot Be Blank."
                                        ControlToValidate="txtSupplierName">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ErrorMessage="FirstName-Only Characters Are Allowed."
                                        ControlToValidate="txtSupplierName" ValidationExpression="[A-Z,a-z, ]+">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Address:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtAddress" runat="server" Rows="2" TextMode="MultiLine" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" TargetControlID="txtAddress"
                                        WatermarkText="Enter Address Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Address-Cannot Be Blank."
                                        ControlToValidate="txtAddress">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Country:</span></td>
                                <td>
                                    <asp:DropDownList ID="ddlCountry" runat="server" AutoPostBack="True" Width="156px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">State:</span></td>
                                <td style="width: 364px">
                                    <asp:DropDownList ID="ddlState" runat="server" AutoPostBack="True" Width="156px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">City:</span></td>
                                <td>
                                    <asp:DropDownList ID="ddlCity" runat="server" Width="156px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Phone Number:</span></td>
                               
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtPhoneNumber" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" TargetControlID="txtPhoneNumber"
                                        WatermarkText="Enter PhoneNumber Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="txtPhoneNumber"
                                        FilterType="Numbers" ValidChars="+" runat="server">
                                    </cc1:FilteredTextBoxExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="PhoneNumber-Cannot Be Blank."
                                        ControlToValidate="txtPhoneNumber">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="PhoneNumber-Should Be Of 10 or 11 Digits."
                                        ControlToValidate="txtPhoneNumber" ValidationExpression="[0-9]{10,11}">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Mobile Number:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtMobileNumber" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" TargetControlID="txtMobileNumber"
                                        WatermarkText="Enter MobileNumber Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="txtMobileNumber"
                                        FilterType="Numbers" ValidChars="+" runat="server">
                                    </cc1:FilteredTextBoxExtender>
                                </td>
                                
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="MoblieNumber-Should Be Of 10 or 11 Digits."
                                        ControlToValidate="txtMobileNumber" ValidationExpression="[0-9]{10,11}">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Email Id:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtEmailId" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" TargetControlID="txtEmailId"
                                        WatermarkText="Enter EmailId Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="EmailId-Cannot Be Blank."
                                        ControlToValidate="txtEmailId">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid EmailId"
                                        ControlToValidate="txtEmailId" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 1382px">
                                    <span style="color: Black;">Zipcode:</span></td>
                                <td style="width: 364px">
                                    <asp:TextBox ID="txtZipcode" runat="server" Width="156px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" TargetControlID="txtZipcode"
                                        WatermarkText="Enter Zipcode Here" runat="server" WatermarkCssClass="watermark">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="Zipcode-Cannot Be Blank."
                                        ControlToValidate="txtZipcode">*</asp:RequiredFieldValidator>
                                </td>
                                <td>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="ZipCode-Must Be 6 Or 7 Digits"
                                        ControlToValidate="txtZipcode" ValidationExpression="[0-9]{6,7}">*</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 1382px">
                                    &nbsp;</td>
                                <td style="width: 364px">
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="8" >
                                    <asp:Button ID="btnSubmit" runat="server" Text="Submit"></asp:Button>
                                    <asp:Button ID="btnReset" runat="server" Text="Reset" CausesValidation="false" ></asp:Button>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <%--  <cc1:CollapsiblePanelExtender runat="server" ID="cpe" TargetControlID="panel2" 
        CollapseControlID="panel1" ExpandControlID="panel1" Collapsed="true" CollapsedSize="0" 
        ExpandedText="(Collapse...)" CollapsedText="(Expand...)" TextLabelID="textLabel" 
        ImageControlID="Image1" ExpandedImage="../images/collapse.jpg" CollapsedImage="../images/expand.jpg">
    </cc1:CollapsiblePanelExtender>
   
    <cc1:CollapsiblePanelExtender runat="server" ID="CollapsiblePanelExtender1" TargetControlID="panel4" 
        CollapseControlID="panel3" ExpandControlID="panel3" Collapsed="true" CollapsedSize="0" 
        ExpandedText="(Collapse...)" CollapsedText="(Expand...)" TextLabelID="lblEdit" 
        ImageControlID="Image2" ExpandedImage="../images/collapse1.jpg" CollapsedImage="../images/expand1.jpg">
    </cc1:CollapsiblePanelExtender>
    <asp:Panel runat="server" ID="panel3">
        <div style="font-weight: bold;">
            <table width="100%">
                <tr>
                    <td align="left">Edit Category
                        <asp:Label runat="server" ID="lblEdit" />
                    </td>
                    <td align="right" width="10px">
                        <asp:Image ID="Image2" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
        </asp:Panel>--%>
    <asp:Panel runat="server" ID="panel4" Width="98%" HorizontalAlign="center">
        <div>
            <table align="center">
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:DataGrid ID="gdSupplier" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            CellPadding="4" EnableTheming="True" Font-Italic="False" Font-Names="Verdana"
                            Font-Size="8pt" ForeColor="Black" GridLines="None" HorizontalAlign="Center" Width="100%"
                            PageSize="5">
                            <AlternatingItemStyle BackColor="White" ForeColor="#757575" />
                            <Columns>
                                <asp:BoundColumn DataField="SupplierId" HeaderText="SupplierId">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>
                                <asp:BoundColumn DataField="SupplierName" HeaderText="SupplierName">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>
                                <%--<asp:BoundColumn DataField="PhoneNumber" HeaderText="Phone Number">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>--%>
                                <asp:BoundColumn DataField="MobileNumber" HeaderText="MobileNumber">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>
                                <%--<asp:BoundColumn DataField="EmailId" HeaderText="EmailId">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>--%>
                                <asp:BoundColumn DataField="ZipCode" HeaderText="ZipCode">
                                    <ItemStyle Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="8pt"
                                        Font-Strikeout="False" Font-Underline="False" />
                                </asp:BoundColumn>
                                <asp:TemplateColumn>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="LblEdit" runat="server" CommandName="Edit" Height="15" Width="15"
                                            ForeColor="#5D3954" ImageUrl="~/images/edit-best.jpg"></asp:ImageButton>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="LbtDelete" runat="server" CommandName="Delete" ForeColor="#5D3954"
                                            ImageUrl="~/images/delete.jpg" Height="15" Width="15"></asp:ImageButton>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                            </Columns>
                            <EditItemStyle BackColor="#999999" ForeColor="#757575" />
                            <FooterStyle BackColor="#B02840" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#77A123" Font-Bold="True" ForeColor="White" />
                            <ItemStyle BackColor="White" ForeColor="#757575" />
                            <PagerStyle BackColor="White" ForeColor="Gray" HorizontalAlign="Right" NextPageText="Next &amp;raquo;"
                                PrevPageText="&amp;laquo; Previous" />
                            <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" Font-Names="Verdana" Font-Size="10pt"
                                ForeColor="#333333" />
                        </asp:DataGrid>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
</asp:Content>
